/**
 * 
 */
package com.game.frame;

import com.game.entity.Playercharacter;


/**
 * @author lushouzhi
 *
 */
public abstract class TableFrame extends ResponseImpl{
	public final static byte TABLE_NULL=0x00;
	public final static byte TABLE_RUN=0x01;
	protected byte gameType;
	protected String tableKey;
	protected byte tableStatus;
//	protected Map<Byte,ZhajinhuaPlayer> playerMap=new HashMap<Byte,ZhajinhuaPlayer>();
	protected abstract void initTable();
	protected abstract void playerEnter(byte chairId,Playercharacter player);
	protected abstract void playerReady(byte chairId);
	protected abstract boolean playerLeave(byte chairId);
	protected abstract void gameStart();
	protected abstract void gameOver();
	protected String getSiteKey(byte chairId){
		return gameType+"-"+tableKey+"-"+chairId;
	}
}
